package com.zjc.app.api.sdk.dto.result;

import java.util.Date;

/**
 * 设备定位指令结果
 */
public class ApiDevicePositionCmdResultDTO {

    public static final String SUCCESS_CMD_RESULT = "1000";

    /**
     * 设备编号
     */
    private String vehicleNo;

    /**
     * 指令结果(1000: 成功)
     */
    private String cmdResult;

    /**
     * 指令结果描述
     */
    private String cmdResultDesc;

    /**
     * 在线状态 (1:上电; 0:下电)
     */
    private String accStatus;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 累计工作时间(小时)
     */
    private String accRunTimes;

    /**
     * 指令回复时间
     */
    private Date cmdTime;

    public String getVehicleNo() {
        return vehicleNo;
    }

    public void setVehicleNo(String vehicleNo) {
        this.vehicleNo = vehicleNo;
    }

    public String getCmdResult() {
        return cmdResult;
    }

    public void setCmdResult(String cmdResult) {
        this.cmdResult = cmdResult;
    }

    public String getCmdResultDesc() {
        return cmdResultDesc;
    }

    public void setCmdResultDesc(String cmdResultDesc) {
        this.cmdResultDesc = cmdResultDesc;
    }

    public String getAccStatus() {
        return accStatus;
    }

    public void setAccStatus(String accStatus) {
        this.accStatus = accStatus;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getAccRunTimes() {
        return accRunTimes;
    }

    public void setAccRunTimes(String accRunTimes) {
        this.accRunTimes = accRunTimes;
    }

    public Date getCmdTime() {
        return cmdTime;
    }

    public void setCmdTime(Date cmdTime) {
        this.cmdTime = cmdTime;
    }

    /**
     * 指令是否成功
     * @return
     */
    public boolean isCmdSuccess() {
        return SUCCESS_CMD_RESULT.equals(this.cmdResult);
    }
}
